/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.edinet.agencialinea3.web.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Iván Zúñiga & Tomás Quinteros
 */
public class DateUtiles {
    
    public static String formatearFechaEspanol(Date date){
        SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
        return sdf.format(date);
    }
    
    public static String formatearFechaEspanolConHora(Date date){
        SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
        return sdf.format(date);
    }
    
}